package 剑指offer.demo6;
//https://www.nowcoder.com/practice/12d959b108cb42b1ab72cef4d36af5ec?
/*
这个其实看代码应该就秒懂了不用多说了
 */
public class 左旋转字符串 {
    public String LeftRotateString(String str,int n) {
        if (str.length() == 0)
            return "";
        String str1 = str.substring(0 , n % str.length());
        String str2 = str.substring(n % str.length() , str.length());
        return str2 + str1;
    }
}
